package com.service.imp;

import com.mapper.ListMapper_db;
import com.pojo.List_db;
import com.service.ListService_db;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ListServiceImp_db implements ListService_db {
    @Autowired
    private ListMapper_db listMapperDb;

    @Override
    public List<List_db> list(String name,Integer id) {
        return listMapperDb.list(name,id);
    }

    @Override
    public List<List_db> listAll() {
        return listMapperDb.listAll();
    }

    @Override
    public List<List_db> listById(Integer id) {
        return listMapperDb.listById(id);
    }

    @Override
    public Integer add(List_db listDb) {
        return listMapperDb.add(listDb);
    }

    @Override
    public Integer update(List_db listDb) {
        return listMapperDb.update(listDb);
    }

    @Override
    public Integer del(Integer bId) {
        return listMapperDb.del(bId);
    }
}
